<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:o="http://omnifaces.org/ui"
	xmlns:mj="http://mojarra.dev.java.net/mojarra_ext"
	template="/WEB-INF/templates/default.xhtml">
	<ui:define name="content">
		<h1>Agenda Resina</h1>
		<div class="agendaTableContainer">
			<table class="simpletablestyle">
				<thead>
					<tr>
						<th scope="col">#{msg['table.header.data']}</th>
						<th scope="col">#{msg['table.header.off']}</th>
						<th scope="col">#{msg['table.header.avvisi']}</th>
						<th scope="col">#{msg['table.header.impronta']}</th>
						<th scope="col">#{msg['table.header.rinnovo']}</th>
						<th scope="col">#{msg['table.header.modifica']}</th>
						<th scope="col">#{msg['table.header.baby']}</th>
						<th scope="col">&#160;</th>
						<th scope="col">#{msg['table.header.num.impronta']}</th>
						<th scope="col">#{msg['table.header.num.rinnovo']}</th>
						<th scope="col">#{msg['table.header.num.modifica']}</th>
						<th scope="col">#{msg['table.header.num.baby']}</th>
						<th scope="col">#{msg['table.header.num.altro']}</th>
					</tr>
				</thead>
				<tbody>
					<ui:repeat var="_appuntamento" value="#{appuntamenti}"
						rendered="#{not empty appuntamenti}">
						<tr>
							<td>
								<h:commandLink action="#{agendaDettaglio(_appuntamento.data)}">
									<h:outputText value="#{_appuntamento.data}">
										<f:convertDateTime dateStyle="full" type="date" />
									</h:outputText>
								</h:commandLink>
							</td>
							<td><h:selectBooleanCheckbox
									value="#{_appuntamento.festivo}" disabled="true" />
							</td>
							<td>#{_appuntamento.message}</td>
							<td>#{_appuntamento.maxAgeR}</td>
							<td>#{_appuntamento.maxAgeRr}</td>
							<td>#{_appuntamento.maxAgeC2}</td>
							<td>#{_appuntamento.maxAgeB}</td>
							<td>&#160;</td>
							<td>#{_appuntamento.totaleI}</td>
							<td>#{_appuntamento.totaleRr}</td>
							<td>#{_appuntamento.totaleM}</td>
							<td>#{_appuntamento.totaleB}</td>
							<td>#{_appuntamento.totaleR}</td>
						</tr>
					</ui:repeat>
				</tbody>
			</table>
			<!-- 
			<h:dataTable var="_appuntamento" value="#{appuntamenti}"
				rendered="#{not empty appuntamenti}" styleClass="simpletablestyle">
				<h:column>
					<f:facet name="header">#{msg['table.header.data']}</f:facet>
					<h:outputText value="#{_appuntamento.data}">
				        <f:convertDateTime dateStyle="full" type="date" />
				    </h:outputText>
           	 	</h:column>
				<h:column>
					<f:facet name="header">#{msg['table.header.off']}</f:facet>
					<h:selectBooleanCheckbox value="#{_appuntamento.festivo}"
						disabled="true" />
				</h:column>
				<h:column>
					<f:facet name="header">#{msg['table.header.avvisi']}</f:facet>
                	#{_appuntamento.message}
            	</h:column>
				<h:column>
					<f:facet name="header">#{msg['table.header.impronta']}</f:facet>
                	#{_appuntamento.maxAgeR}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.rinnovo']}</f:facet>
                	#{_appuntamento.maxAgeRr}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.modifica']}</f:facet>
                	#{_appuntamento.maxAgeC2}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.baby']}</f:facet>
                	#{_appuntamento.maxAgeB}
            	</h:column>
           		<h:column>
					<f:facet name="header">&#160;</f:facet>
                	&#160;
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.num.impronta']}</f:facet>
                	#{_appuntamento.totaleI}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.num.rinnovo']}</f:facet>
                	#{_appuntamento.totaleRr}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.num.modifica']}</f:facet>
                	#{_appuntamento.totaleM}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.num.baby']}</f:facet>
                	#{_appuntamento.totaleB}
            	</h:column>
            	<h:column>
					<f:facet name="header">#{msg['table.header.num.altro']}</f:facet>
                	#{_appuntamento.totaleR}
            	</h:column>
				<f:facet name="footer">

				</f:facet>
			</h:dataTable>
			 -->
		</div>
	</ui:define>
</ui:composition>